<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the StrutStyle constructor from the Class StrutStyle class from the dart:ui library, for the Dart programming language.">
  <title>StrutStyle constructor - StrutStyle class - dart:ui library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="../..">

  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link rel="stylesheet" href="static-assets/github.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">
  <!-- header placeholder -->
</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="index.html">flutter_form_builder</a></li>
    <li><a href="dart-ui/dart-ui-library.html">dart:ui</a></li>
    <li><a href="dart-ui/StrutStyle-class.html">StrutStyle</a></li>
    <li class="self-crumb">StrutStyle constructor</li>
  </ol>
  <div class="self-name">StrutStyle</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div id="dartdoc-sidebar-left" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
      <form class="search-sidebar" role="search">
        <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
      </form>
    </header>
    
    <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
      <li><a href="index.html">flutter_form_builder</a></li>
      <li><a href="dart-ui/dart-ui-library.html">dart:ui</a></li>
      <li><a href="dart-ui/StrutStyle-class.html">StrutStyle</a></li>
      <li class="self-crumb">StrutStyle constructor</li>
    </ol>
    
    <h5>StrutStyle class</h5>
    <ol>
    
      <li class="section-title"><a href="dart-ui/StrutStyle-class.html#constructors">Constructors</a></li>
      <li><a href="dart-ui/StrutStyle/StrutStyle.html">StrutStyle</a></li>
    
      <li class="section-title">
        <a href="dart-ui/StrutStyle-class.html#instance-properties">Properties</a>
      </li>
      <li><a href="dart-ui/StrutStyle/hashCode.html">hashCode</a></li>
      <li class="inherited"><a href="dart-core/Object/runtimeType.html">runtimeType</a></li>
    
      <li class="section-title inherited"><a href="dart-ui/StrutStyle-class.html#instance-methods">Methods</a></li>
      <li class="inherited"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
      <li class="inherited"><a href="dart-core/Object/toString.html">toString</a></li>
    
      <li class="section-title"><a href="dart-ui/StrutStyle-class.html#operators">Operators</a></li>
      <li><a href="dart-ui/StrutStyle/operator_equals.html">operator ==</a></li>
    
    
    
    
    </ol>
  </div><!--/.sidebar-offcanvas-left-->

  <div id="dartdoc-main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">
      <div><h1><span class="kind-constructor">StrutStyle</span> constructor</h1></div>

    <section class="multi-line-signature">
      
      <span class="name ">StrutStyle</span>(<wbr>{<span class="parameter" id="-param-fontFamily"><span class="type-annotation"><a href="dart-core/String-class.html">String</a></span> <span class="parameter-name">fontFamily</span>, </span> <span class="parameter" id="-param-fontFamilyFallback"><span class="type-annotation"><a href="dart-core/List-class.html">List</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="dart-core/String-class.html">String</a></span>&gt;</span></span> <span class="parameter-name">fontFamilyFallback</span>, </span> <span class="parameter" id="-param-fontSize"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">fontSize</span>, </span> <span class="parameter" id="-param-height"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">height</span>, </span> <span class="parameter" id="-param-leading"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">leading</span>, </span> <span class="parameter" id="-param-fontWeight"><span class="type-annotation"><a href="dart-ui/FontWeight-class.html">FontWeight</a></span> <span class="parameter-name">fontWeight</span>, </span> <span class="parameter" id="-param-fontStyle"><span class="type-annotation"><a href="dart-ui/FontStyle-class.html">FontStyle</a></span> <span class="parameter-name">fontStyle</span>, </span> <span class="parameter" id="-param-forceStrutHeight"><span class="type-annotation"><a href="dart-core/bool-class.html">bool</a></span> <span class="parameter-name">forceStrutHeight</span></span> })
    </section>

    <section class="desc markdown">
      <p>Creates a new StrutStyle object.</p>
<ul>
<li>
<p><code>fontFamily</code>: The name of the font to use when painting the text (e.g.,
Roboto).</p>
</li>
<li>
<p><code>fontFamilyFallback</code>: An ordered list of font family names that will be
 searched for when the font in <code>fontFamily</code> cannot be found.</p>
</li>
<li>
<p><code>fontSize</code>: The size of glyphs (in logical pixels) to use when painting
the text.</p>
</li>
<li>
<p><code>height</code>: The minimum height of the line boxes, as a multiplier of the
font size. The lines of the paragraph will be at least
<code>(height + leading) * fontSize</code> tall when <code>fontSize</code> is not null. Omitting
<code>height</code> will allow the minimum line height to take the height as defined
by the font, which may not be exactly the height of the <code>fontSize</code>. When
<code>fontSize</code> is null, there is no minimum line height. Tall glyphs due to
baseline alignment or large <code>TextStyle.fontSize</code> may cause the actual line
height after layout to be taller than specified here. The <code>fontSize</code> must
be provided for this property to take effect.</p>
</li>
<li>
<p><code>leading</code>: The minimum amount of leading between lines as a multiple of
the font size. <code>fontSize</code> must be provided for this property to take effect.</p>
</li>
<li>
<p><code>fontWeight</code>: The typeface thickness to use when painting the text
(e.g., bold).</p>
</li>
<li>
<p><code>fontStyle</code>: The typeface variant to use when drawing the letters (e.g.,
italics).</p>
</li>
<li>
<p><code>forceStrutHeight</code>: When true, the paragraph will force all lines to be exactly
<code>(height + leading) * fontSize</code> tall from baseline to baseline.
<a href="dart-ui/TextStyle-class.html">TextStyle</a> is no longer able to influence the line height, and any tall
glyphs may overlap with lines above. If a <code>fontFamily</code> is specified, the
total ascent of the first line will be the min of the <code>Ascent + half-leading</code>
of the <code>fontFamily</code> and <code>(height + leading) * fontSize</code>. Otherwise, it
will be determined by the Ascent + half-leading of the first text.</p>
</li>
</ul>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">StrutStyle({
  String fontFamily,
  List&lt;String&gt; fontFamilyFallback,
  double fontSize,
  double height,
  double leading,
  FontWeight fontWeight,
  FontStyle fontStyle,
  bool forceStrutHeight,
}) : _encoded = _encodeStrut(
       fontFamily,
       fontFamilyFallback,
       fontSize,
       height,
       leading,
       fontWeight,
       fontStyle,
       forceStrutHeight,
     ),
     _fontFamily = fontFamily,
     _fontFamilyFallback = fontFamilyFallback;</code></pre>
    </section>

  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    flutter_form_builder
      3.8.2
  </span>

  <!-- footer-text placeholder -->
</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>
<!-- footer placeholder -->

</body>

</html>
